<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/21 0021
 * Time: 上午 11:54
 */
namespace app\api\controller;

class Express extends Base{
    public function getExpressList(){
        $data = \app\admin\model\Express::where('status',1)->field('id,name,code')->select();
        if($data){
            return show(config('status.SUCCESS_STATUS'),'ok',$data);
        }else{
            return show(config('status.ERROR_STATUS'),'暂无数据','');
        }
    }
}